
.todo {
  margin: 50px auto;
  width: 500px;
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.todo-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  &__input {
    flex: 1;
    padding: 0 10px;
    height: 36px;
    font-size: 16px;
  }
  &__button {
    margin-left: 10px;
    height: 36px;
  }
}

.todo-list {
  margin-top: 10px;
  border: 1px solid burlywood;
  &__name {
    height: 36px;
    font-size: 24px;
    text-align: center;
  }
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
  height: 50px;
  border-bottom: 1px solid blueviolet;
  &__checkbox {
    margin-right: 10px;
  }
  &__text {
    flex: 1;
    font-size: 24px;
  }
  &__handle {
    display: flex;
  }
}

.todo-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  input {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
  }
  span {
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url("./assets/checkbox.png");
  }
  input:checked + span {
    background-image: url("./assets/checkbox-active.png");
  }
}

.todo-edit-button,
.todo-delete-button {
  margin-left: 10px;
  padding: 0 10px;
  height: 36px;
  font-size: 16px;
}

.todo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 20px;
  height: 50px;
  border: 1px solid greenyellow;
}

.todo-statistics {
  display: flex;
  font-size: 16px;
  color: #aaaaaa;
  > div {
    margin-right: 10px;

    span {
      color: red;
    }
  }
}

.todo-clear-button {
  margin-left: 10px;
  padding: 0 10px;
  height: 36px;
  font-size: 16px;
  border-color: #f56c6c;
  background-color: #f56c6c;
}


.active {
  color: #f56c6c;
}